package Main;

import javax.swing.*;

public class Main {
    public static void main(String[] args) {
        JFrame gameFrame = new JFrame();
        gameFrame.setSize(432, 644);
        gameFrame.setLocationRelativeTo(null); // 居中显示
        gameFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // 设置关闭窗口,同时使程序结束
        gameFrame.setTitle("小飞鸟");
        ImageIcon star = new ImageIcon("E:\\javacode\\javalearning\\BirdGame\\imge\\start.png");
        JLabel starL = new JLabel(star);
        gameFrame.add(starL);
        gameFrame.setVisible(true); //设置可见性

    }
}
